package com.newsmanagement.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.*;
import javax.persistence.*;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @author xbr
 *
 * 用户信息表
 */
@TableName("EUM_T")
public class EumEntity extends Model<EumEntity> {

    //主键
    private Integer eumId;

    //登录密码，需要加密
    private String eumName;

    //手机号码
    private String mobilePhone;

    //登录密码，需要加密
    private String password;

    //用户状态：0:禁用，1：开启;默认禁用
    private Integer accountStatus;

    //是否删除：0:已删除，1：未删除;默认未删除
    private Integer deleteFlag;

    //创建时间
    private Timestamp createTime;

    public Integer getEumId() {
        return eumId;
    }

    public void setEumId(Integer eumId) {
        this.eumId = eumId;
    }

    public String getMobilePhone() {
        return mobilePhone;
    }

    public void setMobilePhone(String mobilePhone) {
        this.mobilePhone = mobilePhone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getAccountStatus() {
        return accountStatus;
    }

    public void setAccountStatus(Integer accountStatus) {
        this.accountStatus = accountStatus;
    }

    public Integer getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(Integer deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.eumId;
    }
}

